f8145017c00a21abe8221b1e42bfd7f247077ccb,app/src/main/java/tech/ozak/sportmix/fragment/SabahFragment.java,SabahFragment,fillTheData,#,100

Before Change



    private void fillTheData() {
        ListActivity splashActivity = ListActivity.getInstance();
        if (!splashActivity.getRssItems().equals(Collections.EMPTY_LIST)) {
            rssItems.addAll(splashActivity.getRssItems());

            ListView listView = (ListView) v.findViewById(R.id.postListView);

After Change



    private void fillTheData() {
        ListActivity splashActivity = ListActivity.getInstance();
        if (splashActivity.getRssItems()!=null && splashActivity.getRssItems().size()>0) {
            rssItems.addAll(splashActivity.getRssItems());

            ListView listView = (ListView) v.findViewById(R.id.postListView);

            itemAdapter = new PostItemAdapter(getActivity(),
                    R.layout.postitem, rssItems);

            // Bind the created avocarrotInstream adapter to your list instead of your listAdapter

            SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(itemAdapter);

            swingBottomInAnimationAdapter.setAbsListView(listView);

            listView.setAdapter(swingBottomInAnimationAdapter);
            swipeRefreshLayout.setRefreshing(false);
        }
        else{
            Toast.makeText(getActivity(),"Lütfen Diğer haber kaynaklarını inceleyiniz...",Toast.LENGTH_LONG);
        }
    }